package com.chenxiao.field.fielddemo.entity;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpInputMessage;

import java.io.IOException;
import java.io.InputStream;

/**
 * @Author: CX
 * @Date: Created in  2023/12/14 15:53
 * @version: v1.0
 * @Description: TODO
 **/
@NoArgsConstructor
@AllArgsConstructor
public class FieldHttpInputMessage implements HttpInputMessage {
    private InputStream body;

    private HttpHeaders headers;
    @Override
    public InputStream getBody() throws IOException {
        return body;
    }

    @Override
    public HttpHeaders getHeaders() {
        return headers;
    }
}
